<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="app">
    <!-- 指令,语法都是v-xxx -->
    <!-- v-text 显示文本 -->
    <p v-text="text1"></p>
    <div v-text="content1"></div>
    <!-- v-html 作为标签渲染 -->
    <p v-html="text2"></p>
    <!-- v-model 绑定输入框的数据：获取输入框的值；设置输入框的值 -->
    <input type="text" v-model="val1">
    <p>{{val1}}</p>
  </div>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        text1: 'hello',
        text2: "<mark style='color: white'>hello</mark>",
        content1: 'hi~',
        val1: 'hello'
      }
    })
  </script>
</body>
</html>